package per.lance.easytomcat.annotation;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface RequestMapping {
    public enum RequestMethod{

        GET("get"),PUT("put"),DEL("del"),POST("post");

        private String name;


        RequestMethod(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }
    }
    String value() default "";

    RequestMethod requestMethod() default RequestMethod.GET;
}
